import Vue from 'vue'

Vue.config.productionTip = false

import mint from 'mint-ui'
Vue.use(mint)

// 引入axios请求方式
// import axios from 'axios'
// Vue.prototype.axios = axios

// 引入存储组件并设置原型属性名为storage
// import localforage from 'localforage'
// localforage.config({
//     name: 'kyks'
// });
// Vue.prototype.storage = localforage

Array.prototype.remove = function(val) {
    var index = this.indexOf(val);
    if (index > -1) {
        this.splice(index, 1);
    }
};

import common from './common'
Vue.prototype.common = common

// 头部组件注册为公共组件
import ComHeader from '@/components/ComHeader.vue'
Vue.component('ComHeader', ComHeader)

// tabbar组件注册为公共组件
import ComFooter from '@/components/ComFooter.vue'
Vue.component('ComFooter', ComFooter)
